package com.example.springbootdemo.component;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

//@Component
public class MySchedule {

    @Scheduled(fixedDelay = 30000)
    public void fixedDelay(){
        System.out.println("fixedDelay:" + new Date());
    }
}
